--[[
	--获取任务配置表
]]
local filename = "gettaskconfig.lua"
local skynet = require "skynet"
local filelog =require "filelog"
local json = require "cjson"
json.encode_sparse_array(true,1,1)

local service = nil
local CMD = {
	service = nil
}

function CMD.process(rid, msgbody)
	if not service then
		service = CMD.service
	end
	local taskconf = skynet.call(".tasksystem", "lua", "gettaskconf") or {}

    return {task_conf_json = json.encode(taskconf)}
end

return CMD